const BASE_FONT_SIZE = 37.5;

export function getDocFontSize() {
  const computedStyle = document.defaultView.getComputedStyle(
    document.documentElement
  );

  return parseFloat(computedStyle.fontSize);
}

export function getRealHeight(size) {
  const realSize = (getDocFontSize() / BASE_FONT_SIZE) * size;

  return parseFloat(realSize);
}
